package com.qing.domain;

import java.sql.Timestamp;
import java.util.List;

public class Post {
    /**
     * 文章的基本属性
     */
    private User user;//
    private int postId;//帖子ID
    private int postBoardId;//论坛板块ID
    private String postUserName;//发表者名称
    private String postTitle;//帖子名称
    private String postContent;//帖子内容-项目概况
    //private int postGoodCount;//点赞数    private int postBadCount;//踩
    //private int postReplyCount;//回贴数  private List<Reply> replies;//回复列表
    private int postViewCount;//游览次数
    private int postStatus;//游览次数
    private Timestamp postCreateTime;//创建时间
    private Timestamp postUpdateTime;//更新时间
    //新增属性
    private String postContentName;//项目名称
    private String postContentFactory;//项目建设单位
    private String postContentPlace;//项目建设地点
    private String postContentContacts;//项目联系人
    private String postContentPhone;//项目联系电话
    private String postContentAppendix;//项目附件地址

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getPostId() {
        return postId;
    }

    public void setPostId(int postId) {
        this.postId = postId;
    }

    public int getPostBoardId() {
        return postBoardId;
    }

    public void setPostBoardId(int postBoardId) {
        this.postBoardId = postBoardId;
    }

    public String getPostUserName() {
        return postUserName;
    }

    public void setPostUserName(String postUserName) {
        this.postUserName = postUserName;
    }

    public String getPostTitle() {
        return postTitle;
    }

    public void setPostTitle(String postTitle) {
        this.postTitle = postTitle;
    }

    public String getPostContent() {
        return postContent;
    }

    public void setPostContent(String postContent) {
        this.postContent = postContent;
    }

    public int getPostViewCount() {
        return postViewCount;
    }

    public void setPostViewCount(int postViewCount) {
        this.postViewCount = postViewCount;
    }

    public int getPostStatus() {
        return postStatus;
    }

    public void setPostStatus(int postStatus) {
        this.postStatus = postStatus;
    }

    public Timestamp getPostCreateTime() {
        return postCreateTime;
    }

    public void setPostCreateTime(Timestamp postCreateTime) {
        this.postCreateTime = postCreateTime;
    }

    public Timestamp getPostUpdateTime() {
        return postUpdateTime;
    }

    public void setPostUpdateTime(Timestamp postUpdateTime) {
        this.postUpdateTime = postUpdateTime;
    }
    //新增属性
    public String getPostContentName() {
        return postContentName;
    }
    public void setPostContentName(String postContentName) {
        this.postContentName = postContentName;
    }

    public String getPostContentFactory() {
        return postContentFactory;
    }
    public void setPostContentFactory(String postContentFactory) {
        this.postContentFactory = postContentFactory;
    }

    public String getPostContentPlace() {
        return postContentPlace;
    }
    public void setPostContentPlace(String postContentPlace) {
        this.postContentPlace = postContentPlace;
    }

    public String getPostContentContacts() {
        return postContentContacts;
    }
    public void setPostContentContacts(String postContentContacts) {
        this.postContentContacts = postContentContacts;
    }

    public String getPostContentPhone() {
        return postContentPhone;
    }
    public void setPostContentPhone(String postContentPhone) {
        this.postContentPhone = postContentPhone;
    }

    public String getPostContentAppendix() {
        return postContentAppendix;
    }
    public void setPostContentAppendix(String postContentAppendix) {
        this.postContentAppendix = postContentAppendix;
    }

    @Override
    public String toString() {
        return "Post {" +
                "postId = " + postId +
                ", postBoardId = " + postBoardId +
                ", postUserName = '" + postUserName + '\'' +
                ", postTitle = '" + postTitle + '\'' +
                ", postContentName = '" + postContentName + '\'' +
                ", postContentFactory = '" + postContentFactory + '\'' +
                ", postContentPlace = '" + postContentPlace + '\'' +
                ", postContentContacts = '" + postContentContacts + '\'' +
                ", postContentPhone = '" + postContentPhone + '\'' +
                ", postContent = '" + postContent + '\'' +
                ", postViewCount = " + postViewCount +
                ", postStatus = " + postStatus +
                ", postCreateTime = " + postCreateTime +
                ", postUpdateTime = " + postUpdateTime +
                ", postContentAppendix= '"+postContentAppendix+'\''+'}';
    }
}

